package com.diankangwo.factory.dao;

import com.diankangwo.factory.entity.TdOnlinepaylog;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.sql.Timestamp;
import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface TdOnlinepaylogMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(TdOnlinepaylog record);

    int insertSelective(TdOnlinepaylog record);

    TdOnlinepaylog selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TdOnlinepaylog record);

    int updateByPrimaryKey(TdOnlinepaylog record);
    /**
     * 查询商品支付记录
     */
    List<TdOnlinepaylog> queryList(Map<String, Object> map);

    /**
     * 查询总数
     */
    int queryTotal(Map<String, Object> map);

    /**
     * 按日查询订单
     */
    List<TdOnlinepaylog> queryByDay(String startTime, String endTime);
}